package com.bbzn.device.client.dao.device;

import com.bbzn.device.client.dataobject.DeviceCategory;
import java.util.Date;
import java.util.List;
import com.bbzn.device.client.dto.device.CreateNbDeviceDTO;import com.bbzn.device.client.dto.device.DeviceCategoryDTO;import org.apache.ibatis.annotations.Param;

public interface DeviceCategoryMapper {
    /**
     * delete by primary key
     *
     * @param id primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(Long id);

    /**
     * insert record to table
     *
     * @param record the record
     * @return insert count
     */
    int insert(DeviceCategory record);

    int insertOrUpdate(DeviceCategory record);

    int insertOrUpdateSelective(DeviceCategory record);

    /**
     * insert record to table selective
     *
     * @param record the record
     * @return insert count
     */
    int insertSelective(DeviceCategory record);

    /**
     * select by primary key
     *
     * @param id primary key
     * @return object by primary key
     */
    DeviceCategory selectByPrimaryKey(Long id);

    /**
     * update record selective
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(DeviceCategory record);

    /**
     * update record
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(DeviceCategory record);

    List<DeviceCategory> findByAll(DeviceCategory deviceCategory);

    List<DeviceCategory> selectByAll(DeviceCategory deviceCategory);

    int updateBatch(List<DeviceCategory> list);

    int updateBatchSelective(List<DeviceCategory> list);

    int batchInsert(@Param("list") List<DeviceCategory> list);

    int findCountByAll(DeviceCategoryDTO record);

    List<DeviceCategory> selectPageByAll(DeviceCategoryDTO deviceCategory);

    CreateNbDeviceDTO queryNbParam(@Param("deviceCategoryId") Long deviceCategoryId);
}